ti: k3: drivers: ti_sci: Retry message receive on bad sequence ID
authorAndrew F. Davis <[email protected]>
Wed, 10 Apr 2019 16:40:12 +0000 (12:40 -0400)
committerAndrew F. Davis <[email protected]>
Tue, 23 Apr 2019 15:09:13 +0000 (11:09 -0400)
commit71a35273130798aa3f19e0baf793aa598577c323
treea195b11269cce372cddcf30c41648004e103720a
parent7a469035e96b1e6d9d31d502ed326d53c698a137
ti: k3: drivers: ti_sci: Retry message receive on bad sequence ID

When we get a sequence ID that does not match what we expect then the we
are looking at is not the one we are expecting and so we error out. We
can also assume this message is a stale message left in the queue, in
this case we can read in the next message and check again for our
message. Switch to doing that here. We only retry a set number of times
so we don't lock the system if our message is actually lost and will
never show up.

Signed-off-by: Andrew F. Davis <[email protected]>
Change-Id: I6c8186ccc45e646d3ba9d431f7d4c451dcd70c5c
plat/ti/k3/common/drivers/ti_sci/ti_sci.c